function y = fitnessFnc(x)
    W = [   inf 5   9   8   7   6
            5   inf 4   15  13  12
            9   4   inf 3   14  11
            8   15  3   inf 2   10
            7   13  14  2   inf 1
            6   12  11  10  1   inf
        ];
    y = 0.0;
    for i = 1 : length(x)-1
        y = y + W( x(i), x(i+1) );
    end
end